ruby-mode: Align def...end to the beginning of statement
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Jan 2014 03:15:02 +0000 (05:15 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 17 Jan 2014 03:15:02 +0000 (05:15 +0200)
commit011078adefd723bc96a76c291b8b2b4f4e98a647
tree34d607fc19039e7ffe00fc11af59817fb7f65177
parent625b68b63256b605116f32d447cae90de7dc8bcf
ruby-mode: Align def...end to the beginning of statement

* lisp/progmodes/ruby-mode.el (ruby-alignable-keywords): New constant.
(ruby-align-to-stmt-keywords): Change the default value.  Use
`ruby-alignable-keywords' to generate the possible customization
choices.
(ruby-smie-rules): Instead of using a hardcoded list of alignable
keywords, check against the value of `ruby-alignable-keywords'
(http://lists.gnu.org/archive/html/emacs-devel/2014-01/msg01439.html).
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/indent/ruby.rb